package com.danco.training.zaneuskaya.connection.dao;

import java.io.Serializable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface GenericDao<T, PK extends Serializable> {

	void create(Connection connection, T object) throws SQLException;

	T read(Connection connection, Integer PK) throws SQLException;

	List<T> readAll(Connection connection) throws SQLException;

	void update(Connection connection, T object) throws SQLException;

	void delete(Connection connection, T object) throws SQLException;

	void deleteById(Connection connection, Integer PK) throws SQLException;

}
